/**
 * 考虑到在获取上下文和全局挂载实例的时候会用到这个getCurrentInstance
 * */
import { ComponentInternalInstance, getCurrentInstance } from 'vue';

export default function useCurrentInstance() {
  const { appContext } = getCurrentInstance() as ComponentInternalInstance;
  const { globalProperties } = appContext.config;
  return {
    globalProperties,
  };
}
